package com.xjtu.se.homework.client.faq.dao;

import com.xjtu.se.homework.client.faq.dto.ClientFaqDto;
import com.xjtu.se.homework.client.faq.dto.ClientSearchDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface ClientFaqDao {
    @Select("select * from faq where status='已发布'")
    List<ClientFaqDto> showAll(ClientSearchDto dto);
}
